package com.tsd.common.service;

import com.tsd.common.entity.CommonTableSetting;
import com.tsd.common.entity.CommonTableSettingExt;
import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：CommonTableSetting服务实现层接口
 *
 * @author Hillpool
 * @date 2022/10/19 17:54:36
 */
public interface CommonTableSettingService {

    /**
     * 描述：根据id获取CommonTableSetting
     *
     * @param id
     */
    CommonTableSetting getCommonTableSettingById(Long id) throws Exception;

    /**
     * 描述：根据sid获取CommonTableSetting
     *
     * @param sid
     */
    CommonTableSettingExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据sid列表删除CommonTableSetting
     *
     * @param list
     */
    void deleteCommonTableSettings(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新CommonTableSetting
     *
     * @param record
     * @param opUser
     */
    void saveCommonTableSetting(CommonTableSettingExt record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询CommonTableSetting
     *
     * @param params
     * @param page
     */
    List<CommonTableSettingExt> findCommonTableSettings(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询CommonTableSetting
     *
     * @param params
     */
    List<CommonTableSettingExt> findCommonTableSettings(Map<String, Object> params) throws Exception;

    CommonTableSettingExt queryCommonTableSettingByRouter(CommonTableSettingExt params) throws Exception;
}